Skip to content

Conversation

@Iwantexpresso
Copy link
Contributor

@Iwantexpresso Iwantexpresso commented Feb 2, 2026

Fixes #7485
This Pr adds 2 new buttons to query builder results, select all and Invert Selection. These only appear after a query has been saved and have also been given a limit to only appear on queries with < 3 million results.

Sample demonstration

Screen.Recording.2026-02-09.at.11.04.02.AM.mov

Checklist

  • Self-review the PR after opening it to make sure the changes look good and
    self-explanatory (or properly documented)
  • Add relevant issue to release milestone
  • Add pr to documentation list
  • Add automated tests
  • Add a reverse migration if a migration is present in the PR

Testing instructions

  • open any database of your choice, go to query builder,create a query or open a saved one that displays results. If using a new query remember to save it as only then the button will be available.
  • click the newly added select all button, see if all results are selected
  • clear your selections, next we will be testing the invert all button
  • Select some records, then click invert selection, make sure all records but the ones previously checked are selected
  • Select no records, then click invert selection, make sure the invert selection button is properly inverting the current selection.
  • Perform these check on at least one large database ( queries with more than 50,000 or 100,000+ results), also keep track of any latency longer than 10 seconds when using both invert selection and select all.
  • (optional) perform this test on a database with at least 500,000+ query results), this is an optional stress test so feel free to use a larger DB if you're able to

@Iwantexpresso Iwantexpresso added this to the 7.13.0 milestone Feb 9, 2026
@Iwantexpresso Iwantexpresso marked this pull request as ready for review February 9, 2026 17:39
@Iwantexpresso Iwantexpresso requested review from a team February 9, 2026 17:41
Triggered by 9c4fd45 on branch refs/heads/issue-7485
@grantfitzsimmons grantfitzsimmons changed the title feat(Add select all buttion and Invert Selection button to query results) feat(queries): Add 'Select All' and 'Invert Selection' buttons to the Query Builder Feb 9, 2026
Copy link
Collaborator

@emenslin emenslin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • click the newly added select all button, see if all results are selected
  • Select some records, then click invert selection, make sure all records but the ones previously checked are selected
  • Select no records, then click invert selection, make sure the invert selection button is properly inverting the current selection.
  • Perform these check on at least one large database ( queries with more than 50,000 or 100,000+ results), also keep track of any latency longer than 10 seconds when using both invert selection and select all.
  • (optional) perform this test on a database with at least 500,000+ query results), this is an optional stress test so feel free to use a larger DB if you're able to

Looks wise everything seems to be selected; however, I am running into this issue sometimes where it shows all results are selected but when I create a record set, not all records are added. I also checked the behavior against main (same query and selected no results) and all results are added. This does not seem to always happen but I can consistently recreate it with this query: https://ojsmnh20251211-issue-7485.test.specifysystems.org/specify/query/305/

Selecting all records individually:

02-09_12.39.mp4

Using 'Select All' button:

02-09_12.40.mp4

I also ran into it when creating a CSV for that query and others. It seems to consistently cut off at either 80 or 120 records depending on the query, I'm not sure why. Here's another example query from a different DB: https://herbrbge20260105-issue-7485.test.specifysystems.org/specify/query/554/

@github-project-automation github-project-automation bot moved this from 📋Back Log to Dev Attention Needed in General Tester Board Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Dev Attention Needed

Development

Successfully merging this pull request may close these issues.

Add "Select All" button for query results

2 participants